import React, { Fragment } from 'react'
import header from '@/assets/image/login/login.jpg'

export default function UserInforHeade({ userHeadInfor }) {
  const date = new Date(userHeadInfor?.birthday);
  return (
    <Fragment>
      <div className='user-information'>
        <div className='user-head'>
          <img src={header} alt="" />
        </div>
        <div className='user-infor-sch'>
          <ul>
            <li>姓名：{userHeadInfor?.name}</li>
            <li>学号：{userHeadInfor?.idNum}</li>
            <li>专业：{userHeadInfor?.professional}</li>
            <li>生日：{date.toLocaleDateString()}</li>
            <li>联系方式：{userHeadInfor?.phone}</li>
          </ul>
        </div>
      </div>
    </Fragment>
  )
}
